﻿@model EasyStep.Data.Entities.TestProject

@{
	ViewBag.Title = "Details: " + @Model.Name;
}

<h2>Project: @Model.Name</h2>

<p>

<ul class="round accordion accordion-project">
	<!-- show tests-->
	<li class="tests-li">        
		<h3>Available Tests:</h3>
		<ul class="tests-list">
		@if (@Model.Tests.Count() == 0) 
		{ 
			<li class="item test-li empty">
				<a href="@Url.Action("Create","Test")">no one Test exists in this project...</a>
			</li>
		}
		@foreach (var item in Model.Tests)
		{
			<li class="test-li">
				<a href="@Url.Action("Details", "Test", new { id = item.Id })">
					@Html.DisplayFor(modelItem => item.Name)
				</a>
			</li>
		}
		</ul>
	</li>
	<!-- show constants lists-->
	<li class="consts-lists-li">        
		<h3>Available Constants:</h3>
		<ul class="consts-lists-list">
		@if (@Model.ConstantLists.Count() == 0) 
		{ 
			<li class="item consts-list-li empty">
				<a href="@Url.Action("Create","TestConstnList")">no one Constants List exists in this project...</a>
			</li>
		}	 
		@foreach (var item in Model.ConstantLists)
		{
			<li class="consts-list-li">
				<a href="@Url.Action("Details", "TestConstnList", new { id = item.Id })">
					@Html.DisplayFor(modelItem => item.Name)
				</a>
			</li>
		}
		</ul>
	</li>
</ul></p>
<script type="text/javascript">
	jQuery(document).ready(function () {

		InitAccordion($('.accordion-project'), function () { }, function () { });
		
	});
</script>
<script src="@Url.Content("~/Scripts/jQuery.tmpl.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/site.main.js")" type="text/javascript"></script>